<?php
namespace Foam\Model;

class CarteProduit
{
    public $id_crt_prd;    
    public $id_produit;
    public $id_carte;
    public $direction;
    
    public function exchangeArray($data)
    {
        $this->id_crt_prd = (isset($data['id_crt_prd'])) ? $data['id_crt_prd'] : null;        
        $this->id_produit = (isset($data['id_produit'])) ? $data['id_produit'] : null;
        $this->id_carte = (isset($data['id_carte'])) ? $data['id_carte'] : null;
        $this->direction = (isset($data['direction'])) ? $data['direction'] : null;
    }
}